﻿<%@ Page Title="Dealer List" Language="C#" MasterPageFile="~/GEMS.master" AutoEventWireup="true"
    CodeFile="DealerList.aspx.cs" Inherits="vp_DealerList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .header
        {
            font-weight: bold;
            position: absolute;
            background-color: White;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel runat="server" ID="UpdatePanel">
        <ContentTemplate>
            <div class="container960">
                <div class="container_12 container_16">
                    <div class="full">
                        <div class="content">
                            <h2>
                                Dealer List</h2>
                            <div class="f_head r2 box">
                                <div class="head_con">
                                    <div class="c1">
                                        <div class="rw1">
                                            <span class="text">Dealer Code</span>
                                            <asp:TextBox ID="txtcode" runat="server" CssClass="text_field field"></asp:TextBox>
                                        </div>
                                        <div class="rw1">
                                            <span class="text">Dealer Company Name</span>
                                            <asp:TextBox ID="txtcompany" runat="server" CssClass="text_field field"></asp:TextBox>
                                        </div>
                                    </div>
                                    <div class="c2">
                                        <div class="rw1">
                                            <span class="text">Dealer Name</span>
                                            <asp:TextBox ID="txtname" runat="server" CssClass="text_field field"></asp:TextBox>
                                        </div>
                                        <div class="rw1 last_btn">
                                            <span class="text">&nbsp;</span>
                                            <asp:Button ID="btnsrch" runat="server" Text="Refresh" CssClass="lgin" OnClick="btnsrch_Click" />
                                            <asp:Button ID="Button1" runat="server" PostBackUrl="~/Master/DealerMaster.aspx"
                                                Text="New" CssClass="lgin last" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="count_grid" class="box">
                                <div class="grid1">
                                    <asp:GridView ID="GridView1" runat="server" BackColor="White" DataKeyNames="Dealer_id"
                                        CssClass="mGrid" OnSorting="gvList_Sorting" AutoGenerateColumns="False" AllowSorting="true"
                                        OnRowDataBound="grdiview_RowDataBound">
                                        <Columns>
                                            <asp:TemplateField HeaderText="Edit">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="Ibtedt" runat="server" CausesValidation="False" ImageUrl="~/css/images/edit.jpg"
                                                        Text="Edit" ToolTip="Click here to Edit" OnClick="ibtEdit_Click" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Delete">
                                                <ItemTemplate>
                                                    <asp:ImageButton ID="ibtdlt" runat="server" CausesValidation="False" ImageUrl="~/css/images/delete.gif"
                                                        Text="Delete" ToolTip="Click here to Delete" OnClick="ibtdelete_Click" OnClientClick="return confirm('Are you sure to delete ?');" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="DealerCode" DataField="DealerCode" SortExpression="DealerCode" />
                                            <asp:BoundField HeaderText="DealerName" DataField="DealerName" SortExpression="DealerName" />
                                            <asp:BoundField HeaderText="CompanyName" DataField="CompanyName" SortExpression="CompanyName" />
                                            <asp:BoundField HeaderText="Contact" DataField="Contact" SortExpression="Contact" />
                                        </Columns>
                                    </asp:GridView>
                                </div>
                                <div>
                                    <uc1:Pager ID="PagerControl" runat="server" />
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
